@import 'var';

@mixin clearfix {

  &:before,
  &:after {
    content: '';
    display: table;
  }

  &:after {
    clear: both;
  }
}

@mixin panel {
  display: block;
  background-color: #fff;
  border-radius: 0;
  padding: $box-space;
  margin: $box-space*0.75 $box-space;
  // box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;
}

@mixin menu-side {
  position: relative;
  background-color: rgba(0, 0, 0, 0.2) !important;

  &:before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: $primary-color;
    width: 4px;
    content: '';
  }
}

@mixin fixedType($type) {
  @if $type==left {
    left: -1px;
    box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .15) !important;
    transform: translateX(-100%) !important;
  }

  @if $type==right {
    right: -1px;
    box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .15) !important;
    transform: translateX(100%) !important;
  }
}

@mixin fixedShadow($type) {
  position: relative;
  overflow: visible;
  background-clip: padding-box;

  &>.dx-template-wrapper,
  &>.dx-template-content {
    overflow: hidden;
  }

  &:after {
    position: absolute;
    top: 0;
    bottom: -1px;
    width: 30px;
    transition: box-shadow .3s;
    content: "";
    pointer-events: none;
    @include fixedType($type);
  }
}
